<ui:composition template="/WEB-INF/templates/BackOffice/BasicTemplate.xhtml"
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
    xmlns:p="http://primefaces.org/ui"
   xmlns:f="http://xmlns.jcp.org/jsf/core"
    xmlns:h="http://xmlns.jcp.org/jsf/html">

    <ui:define name="title">Redéfinie le titre</ui:define>

    <ui:define name="content">
       
	<h:form>
	
	<p:outputLabel value="#{msgs1.label_login} : "/>
	<p:inputText id="log" value="#{loginBackOfficeBean.login}" required="true" requiredMessage="Cette valeur est requise"/>
	<p:messages for="log" id="messageslog" /> 
	<br/>
	
	<p:outputLabel value="#{msgs1.label_mdp} : "/>
	<p:password id="pass" value="#{loginBackOfficeBean.mdp}" required="true" requiredMessage="Cette valeur est requise"/>
	<p:messages for="pass" id="messagespass" /> 
	<br/>
	<p:commandButton value="#{msgs1.label_connecter}" action="#{loginBackOfficeBean.connection}"/><br/>
	<div>
	<p:outputLabel value="#{msgs1.label_login_incorrect}"  rendered="#{loginBackOfficeBean.loginFail}"/>
	</div>
	
	</h:form>

    </ui:define>
</ui:composition>